package com.bolt.admin.module.test.entity;

import com.bolt.support.spring.jpa.entity.BaseEntity;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.math.BigDecimal;

/**
* Auto Generate Javadoc
* @author
* 日期:2021-06-01 15:18:29
* 查询汇总演示-水果订单表
**/
@Access(AccessType.FIELD)
@Entity
@Table(name = "sqltoy_fruit_order")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class FruitOrderEntity extends  BaseEntity<Integer> {
        private static final long serialVersionUID = 1L;
        /**
        * 
        */
         @Id
         private Integer  id;
          
        /**
        * 水果名称
        */
         @Column(name="FRUIT_NAME" , length = 100)
         private String  fruitName;
          
        /**
        * 订单月份
        */
         @Column(name="ORDER_MONTH" , length = 10)
         private Integer  orderMonth;
          
        /**
        * 销售数量
        */
         @Column(name="SALE_COUNT" , length = 10)
         private BigDecimal saleCount;
          
        /**
        * 销售单价
        */
         @Column(name="SALE_PRICE" , length = 10)
         private BigDecimal  salePrice;
          
        /**
        * 总金额
        */
         @Column(name="TOTAL_AMT" , length = 10)
         private BigDecimal  totalAmt;
          

}